export type User = {
  token: string
  id: string
  account: string
  mobile: string
  avatar: string
  refreshToken: string
}

export type CodeType =
  | 'login'
  | 'register'
  | 'changeMobile'
  | 'forgetPassword'
  | 'bindMobile'
// 订单
export type OrderInfo = {
  paidNumber: number

  receivedNumber: number
  shippedNumber: number
  finishedNumber: number


}
// 排除单个
// type OmitUser = Omit<User, 'token'>
// 排除多个
type OmitUser = Omit<User, 'token' | 'refreshToken'>
export type UserInfo = OmitUser & {
  likeNumber: number
  collectionNumber: number
  score: number

  couponNumber: number
  consultationInfo: any[]
  orderInfo: OrderInfo
}
// 患者信息
export type Patient = {
  value: any
  name?: string
  idCard: string
  // 是否是默认就诊患者 是就是1, 否则是0
  defaultFlag: 0 | 1
  // 0 女 1 男
  gender: 0 | 1
  genderValue?: string
  age?: number
  id?: string
}
export type PatientList = Patient[]